projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41cd4c8
)
textview: Fix memory handling
author
Matthias Clasen
<mclasen@redhat.com>
Sat, 7 Oct 2017 03:06:52 +0000
(23:06 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Sat, 7 Oct 2017 03:06:52 +0000
(23:06 -0400)
When cleaning up the text appearance struct, we forgot
to add the new strikethrough_rgba member to the copy
function.
gtk/gtktextlayout.c
patch
|
blob
|
history
diff --git
a/gtk/gtktextlayout.c
b/gtk/gtktextlayout.c
index 75c37a583b2e27c71078d271dffe263b9e0ae747..564d1be8c8b5eb1f09574ad355edad0b5155e16c 100644
(file)
--- a/
gtk/gtktextlayout.c
+++ b/
gtk/gtktextlayout.c
@@
-1549,6
+1549,9
@@
gtk_text_attr_appearance_new (const GtkTextAppearance *appearance)
if (appearance->underline_rgba)
result->appearance.underline_rgba = gdk_rgba_copy (appearance->underline_rgba);
+ if (appearance->strikethrough_rgba)
+ result->appearance.strikethrough_rgba = gdk_rgba_copy (appearance->strikethrough_rgba);
+
return (PangoAttribute *)result;
}